package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.InformRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mingqijia.gassafety.db.entity.WarningRecord;
import com.mingqijia.gassafety.db.entity.vo.RecordVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 故障、离线、运行报告的通知记录 Mapper 接口
 * </p>
 *
 * @author shiying.li
 * @since 2023-12-15
 */
@Repository
public interface InformRecordMapper extends BaseMapper<InformRecord> {

    List<RecordVO> getList(RecordVO vo);

    List<InformRecord> selectCallLists();


    void updateByTaskDataId(@Param("taskDataId")String taskDataId,
                            @Param("code")int code,@Param("desc") String desc);

    int selectWarnStrategyUse(@Param("id")Long id);

    List<InformRecord> selectLists(@Param( "date" )  String date);
}
